<!DOCTYPE html>
<html>
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/v.ico" type="image/x-icon"/>
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
<body>
  
<script type="text/javascript">
	var autosize = new autosize();
        var feedback = new feedback();
        var _mvq = _mvq || [];
        _mvq.push(['$setAccount', 'm-29295-0']);
        _mvq.push(['$logConversion']);
        (function () {
            var mvl = document.createElement('script');
            mvl.type = 'text/javascript'; mvl.async = true;
            mvl.src = ('https:' == document.location.protocol ? '<?php use_javascript('mvl.js') ?>' : '<?php use_javascript('mvl.js') ?>');
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(mvl, s);
        })();
	$(document).ready(function(){
	    $("#page_message").fadeOut(2000);
	});
</script>
    <div class="main">
        <header class="header">
            <nav class="navbar navbar-default toolbar" role="navigation">
                <div class="wrap">
                    <div class=" ft-r" id="loginstatus">
                        <?php if($sf_user->isAuthenticated()): ?>
                        <a class="btn btn-default navbar-btn ft-l" href="<?php echo url_for('account/index'); ?>"><?php echo $sf_user->getAttribute('user_name',''); ?></a>
                            <a class="btn btn-default navbar-btn ft-l" href="<?php echo url_for('user/message'); ?>">
                                <span class="ft-l">消息</span>
                            </a>
                            <a class="btn btn-default navbar-btn ft-l" href="<?php echo url_for('user/logout'); ?>">退出</a>
<!--                            <a class="btn btn-default navbar-btn ft-l" href="#">
                                <span class="ft-l">新手活动</span>
                            </a>-->
                        <?php else: ?>
                        <a class="btn btn-default navbar-btn ft-l" href="<?php echo url_for('user/login'); ?>">登录</a>
                        <a class="btn btn-default navbar-btn ft-l" href="<?php echo url_for('user/register'); ?>">注册</a>
<!--                        <a class="btn btn-default navbar-btn ft-l" href="#"><span class="ft-l">新手活动</span></a>-->
                        <?php endif; ?>
                    </div>
                </div>
            </nav>
            <div id="inner-header" class="wrap">
                <div class="border">
                    <div id="logo" class="threecol first">
                        <a href="<?php echo url_for('@homepage') ?>" tppabs="<?php echo url_for('@homepage') ?>">
                            <img src="<?php echo image_path('main/logo.png')?>" tppabs="<?php echo image_path('main/logo.png')?>" width="194" class="ft-l" />
                        </a>
                    </div>
                </div>
                <div>
                    <nav>
                        <ul class="nav">
                            <li><a href="<?php echo url_for('project/list')?>" tppabs="<?php echo url_for('project/list')?>" id="10001">我要理财</a></li>
                            <li><a href="<?php echo url_for('loan/list')?>" tppabs="<?php echo url_for('loan/list')?>" id="10002">我要融资</a></li>
                            <li><a href="<?php echo url_for('account/index')?>" tppabs="<?php echo url_for('account/index')?>" id="10003">我的账户</a></li>
                            <li><a href="<?php echo url_for('default/aboutus')?>" tppabs="<?php echo url_for('default/aboutus')?>" id="10004">关于微美</a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
       <?php echo $sf_content ?> 

        
 
        
<script>
    $(".main").addClass("projectlist");
    if ($("#errormsg").text().length > 0) {
        var status = $("#errormsg").attr("status");
        if (status == "1") {
            $.scojs_message($("#errormsg").text(), $.scojs_message.TYPE_OK);
        } else {
            $.scojs_message($("#errormsg").text(), $.scojs_message.TYPE_ERROR);
        }
    }

</script>

        <div class="friend ">
            <div class="wrap">
               <ul>
                    <li><a href="<?php echo url_for('default/aboutus') ?>">关于我们</a></li>
                    <li><a href="<?php echo url_for('default/help1') ?>">常见问题</a></li>
                    <li><a href="<?php echo url_for('default/novice') ?>">新手指引</a></li>
                    <li><a href="<?php echo url_for('default/law') ?>">法律声明</a></li>
                    <li><a href="<?php echo url_for('default/contactus') ?>">联系我们</a></li>
                    <li><a href="<?php echo url_for('default/bidflow') ?>">投资指引</a></li>
                    <li><a href="" data-toggle="modal" data-target="#projectlistmodel">收益计算器</a></li>
                </ul>
                <div class="b-icon-nav">
                    <div to="tosina" class="b-icon qq"><a href="http://weibo.com/vmdai" target="_blank"></a></div>
                    <div to="towin" class="b-icon weixin"></div>
                    <div to="toqq" class="b-icon sina"></div>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="wrap">
                <label class="b_list">
                    © 2014 VMdai.com ,  All Rights Reserved  |  沪ICP证14020266号  威美（上海）金融信息服务有限公司
                </label>

                <a class="ft-r" href="http://www.sgs.gov.cn/lz/licenseLink.do?method=licenceView&entyId=20140707162434953" target="_blank">
                    <img alt="上海工商" title="上海工商" src="<?php echo image_path('main/logo_shadm.png')?>" border="0"></a>
                <a class="ft-r" href="http://www.itrust.org.cn/yz/pjwx.asp?wm=130161484X" target="_blank">
                    <img alt="企业信用评级证书" title="企业信用评级证书" src="<?php echo image_path('main/wx_seal.png')?>" border="0"></a>
            </div>
        </footer>
    </div>
    <script>
        //Google
//        (function (i, s, o, g, r, a, m) {
//            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
//                (i[r].q = i[r].q || []).push(arguments)
//            }, i[r].l = 1 * new Date(); a = s.createElement(o),
//            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
//        })(window, document, 'script', 'http://www.google-analytics.com/analytics.js'/*tpa=http://www.google-analytics.com/analytics.js*/, 'ga');
//
//        ga('create', 'UA-50379356-1', 'list.htm'/*tpa=http://www.vmdai.com/loan/vmdai.com*/);
//        ga('send', 'pageview');
    </script>

    <div class="modal fade" id="projectlistmodel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">收益计算器</h4>
                </div>
                <div class="modal-body">
                    <iframe src="<?php echo url_for("tools/calculator")?>" width="100%"></iframe>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fd753ff7861afe89b166cf810016f4ada' type='text/javascript'%3E%3C/script%3E"));
        $(function ($) { $("a").each(function () { if ($(this).attr('href') != undefined) { if ($(this).attr('href').indexOf("baidu") > 0) { $(this).hide(); } } }); });
    </script>
      
</body>
</html>

        
        